import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SFriendRecord } from "./SFriendRecord";
type int = number;
//class SFriendRecordMsg
    
    export  class SFriendRecordMsg extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SFriendRecordMsg();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.type);
            this.friendRecord.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = arg1.readInt();
            this.friendRecord = new SFriendRecord();
            this.friendRecord.__read(arg1);
            return;
        }

        public /* const */_type: int=12017;

        public /* var */type: int;

        public /* var */friendRecord: SFriendRecord;

        public static /* var */_regist: SFriendRecordMsg;
    }

            SFriendRecordMsg._regist = new SFriendRecordMsg(true);
        